package com.Ajava1704;


/**
 * 作者: LCG
 * 日期: 2020/2/10 10:08
 * 描述:
 */
public class Test0210 {

    public static void main(String[] args) throws InterruptedException {

        Thread thread=new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("=====1======");
            }
        });
        thread.start();
        thread.join();

        Thread thread2=new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("=====2======");
            }
        });
        thread2.start();
        thread2.join();

        Thread thread3=new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("=====3======");
                try {
                    Thread.sleep(5000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }

            }
        });
        thread3.start();
        thread3.join();

        System.out.println("=============0000000000===========");


    }

}
